summon armor_stand ~ ~ ~ {Tags:[temp,"GameCtrol"],Invisible:true,Marker:true,Invulnerable:true,Small:true}

loot replace entity @n[tag=temp,distance=..10,type=armor_stand] weapon.mainhand loot vs:voidogen
item modify entity @n[tag=temp,distance=..10,type=armor_stand] weapon.mainhand {function:"set_count",count:{type:"storage",path:"temp.StreamMinecart.Count",storage:"vs:system"}}

item replace block ~ ~ ~ container.2 from entity @n[tag=temp,distance=..10,type=armor_stand] weapon.mainhand

kill @n[type=armor_stand,distance=..10,tag=temp]